home *** CD-ROM | disk | FTP | other *** search
- #ifndef USER_INCLUDED
- #define USER_INCLUDED
-
- enum UserCmds {
- cmCopyrights = 100,
- cmTheTest,
- cmTheMenace,
- cmForTheParanoid,
-
- cmLoadTest,
- cmSaveTest,
- cmReportTest,
-
- cmTakeTest,
- cmCheatTest,
- cmShowTest,
-
- cmWhatIs_Q,
- cmWhatIs_F,
- cmWhatIs_K,
- cmWhatIs_Hs,
- cmWhatIs_D,
- cmWhatIs_Hy,
- cmWhatIs_Pd,
- cmWhatIs_MfM,
- cmWhatIs_MfF,
- cmWhatIs_Pa,
- cmWhatIs_Pt,
- cmWhatIs_Sc,
- cmWhatIs_Ma,
- cmWhatIs_Si,
- cmWhatIs_L,
- };
-
- #include <time.h>
-
- class TClockView : public TView
- {
-
- public:
-
- TClockView( TRect& r );
- virtual void draw();
- virtual void update();
-
- private:
-
- char lastTime[9];
- char curTime[9];
-
- };
-
- class TVTest : public TApplication
- {
- public:
-
- TVTest();
- ~TVTest();
- void idle();
- TClockView *clock;
- virtual void handleEvent( TEvent& );
- static TStatusLine *initStatusLine( TRect );
- static TMenuBar *initMenuBar( TRect );
- void HelpMe( TEvent&, int );
- MMPITest theTest;
- void changeDir();
- void loadAnswers();
- void saveAnswers();
-
- // Test items
- void TakeTest(int);
- int GetGender();
- int ask(MMPIQuestion *, int);
- int abortTest();
-
- void reportTest();
- void showTest(char *fName="REPORT.RPT");
-
- // Info/Help items
- void titleWin();
- };
-
-
- #endif